package com.pengshun.modules.common;

import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Fourth;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class PagePara {

    @NotNull(message = "page不能为空", groups = {First.class,Fourth.class})
    private  Integer page;

    @NotNull(message = "size不能为空", groups = {First.class,Fourth.class})
    private  Integer size;

    @NotNull(message = "状态不能为空", groups = {Fourth.class})
    private  Integer status;

    private Long  userId;

    public Integer getPage() {
        int pg=this.page*this.size;
        return pg;
    }

}
